package com.lemonsama.lesson5;

import javax.swing.*;
import java.awt.*;

public class ComboboxTest02 extends JFrame {
    public ComboboxTest02() {

        Container contentPane = this.getContentPane();

        String[] contents = {"1", "2", "3"};

        JList jList = new JList(contents);

        contentPane.add(jList);

        this.setVisible(true);
        this.setSize(500, 350);
        this.setDefaultCloseOperation(EXIT_ON_CLOSE);
    }

    public static void main(String[] args) {
        new ComboboxTest02();
    }
}
